package consumer.model;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author maweiyue
 * @Date 2019/07/01
 * @Description 客户管理
 */
public class Consumer {

    private Integer id;

    /** 上级客户id */
    private Integer parentId;

    /** 客户编码 */
    private String code;

    /** 客户名称 */
    private String name;

    /** 联系人/负责人 */
    private String manager;

    /** 联系电话 */
    private String phone;

    /** 地址 */
    private String address;

    /** 邮编 */
    private String postcode;

    /** 创建时间 */
    private LocalDateTime crteTime;

    /** 创建者 */
    private Integer crteMngId;

    /** 状态 */
    private int delFlag;

    /** 下级单位 */
    private List<Consumer> children;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getManager() {
        return manager;
    }

    public void setManager(String manager) {
        this.manager = manager;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getCrteMngId() {
        return crteMngId;
    }

    public void setCrteMngId(Integer crteMngId) {
        this.crteMngId = crteMngId;
    }

    public List<Consumer> getChildren() {
        return children;
    }

    public void setChildren(List<Consumer> children) {
        this.children = children;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public LocalDateTime getCrteTime() {
        return crteTime;
    }

    public void setCrteTime(LocalDateTime crteTime) {
        this.crteTime = crteTime;
    }

    public int getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(int delFlag) {
        this.delFlag = delFlag;
    }
}
